import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo6 {
    public static void main(String[] args) throws FileNotFoundException {
        //字节流写入
        /*
        输入流 读入数据
        输出流 写出数据
         */
        try (OutputStream outputStream=new FileOutputStream("d:/test.txt"))
        {
            outputStream.write(99);
            outputStream.write(100);
            outputStream.write(98);
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
